
const data_config = require("./data_config");


module.exports = {
  nav_name: '团队管理',               //生成导航菜单
  module_name: 'team_m',             //生成路径，必须与文件名相同
  //接口
  api: `{               
      searchTeamList: commonPath + '/admin/userInfo/searchTeamList',    
  }`,

  //团队列表
  table1: {
    isGenerate: "false",                    //false表示不生成页面
    table_name: "team_m_table",                //表页面名
    nav_name: "团队列表",                      //导航名
    tipsText: "团队管理 >> 团队列表",          //顶部文字
    //tableReqMethod: "get",  //分页请求配置成get方式, 默认为post
    pageApi: "API.team_m.searchTeamList",  //请求api
    extraPageRequestParams: `
       userId : null,  //请求
    `, //已有page和pageSize
    //配置列表页面
    tableData: [
      //类型normal(title定义名称  name定义动态绑定值  type定义类型  itemWidth定义宽度)
      { title: '序号', name: 'index', type: "normal",  },
      { title: '用户昵称', name: 'nickName', type: "normal", },
      { title: '手机号', name: 'phone', type: "normal", },
      { title: '会员级别', name: 'grade', type: "normal", },
      { title: '创客级别', name: 'guestName', type: "normal", },
      { title: '推荐人', name: 'recommendPhone', type: "normal", },
      { title: '团队人数', name: 'teamSize', type: "normal", },
      { title: '团队业绩', name: 'teamPerformance', type: "normal", },
    ],

    //配置列表操作项(type类型  text名称  request是否请求  jump跳转路由【本文件名+跳转文件名】 url接口 requestType请求方式)
    tableOpt: [
      //查看跳转
      {
        type: "modify",
        text: "查看",
        request: false,
        jump: "/team_m_team_detail_table"
      },
    ],

    //配置搜索栏
    search: {
      //筛选
      contentArr: {
        //labelName定义名称  inputName定义动态绑定值
        input1: { labelName: '用户昵称', inputName: 'nickName', labelWidth: '120' },
        input1: { labelName: '手机号', inputName: 'phone', labelWidth: '120' },
        //selectOptsName自定义名称  selectOptsArr下拉内容  labelWidth定义宽度
        select1: {
          labelWidth: "120",
          labelName: '级别',
          inputName: 'readeIntegral',
          selectOptsName: "gradeOpts",
          selectOptsArr: `[
                  { value: "1", label: "普粉" },
                  { value: "2", label: "铁粉" },
                  { value: "3", label: "超粉" },
                  { value: "4", label: "V1" },
                  { value: "5", label: "V2" },
                  { value: "6", label: "V3" },
                  { value: "7", label: "V4" },
                  { value: "8", label: "V5" },
                  { value: "9", label: "V6" },
                  { value: "10", label: "V7" },
                  { value: "", label: "全部" },
                ],
                `,
        },

      },
      //查找按钮的文字
      searchBtn: {
        //链接与table请求接口相同，不做另外配置
        text: "查询",
      },

    },
  },

  //团队列表
  table2: {
    isGenerate: "false",                    //false表示不生成页面
    table_name: "team_m_table2",                //表页面名
    nav_name: "团队列表2",                      //导航名
    tipsText: "团队管理 >> 团队列表2",          //顶部文字
    //tableReqMethod: "get",  //分页请求配置成get方式, 默认为post
    pageApi: "API.team_m.searchTeamList",  //请求api
    extraPageRequestParams: `
       userId : null,  //请求
    `, //已有page和pageSize
    //配置列表页面
    tableData: [
      //类型normal(title定义名称  name定义动态绑定值  type定义类型  itemWidth定义宽度)
      { title: '序号', name: 'index', type: "normal",  },
      { title: '用户昵称', name: 'nickName', type: "normal", },
      { title: '手机号', name: 'phone', type: "normal", },
      { title: '会员级别', name: 'grade', type: "normal", },
      { title: '创客级别', name: 'guestName', type: "normal", },
      { title: '推荐人', name: 'recommendPhone', type: "normal", },
      { title: '团队人数', name: 'teamSize', type: "normal", },
      { title: '团队业绩', name: 'teamPerformance', type: "normal", },
    ],

    //配置列表操作项(type类型  text名称  request是否请求  jump跳转路由【本文件名+跳转文件名】 url接口 requestType请求方式)
    tableOpt: [
      //查看跳转
      {
        type: "modify",
        text: "查看",
        request: false,
        jump: "/team_m_team_detail_table"
      },
    ],

    //配置搜索栏
    search: {
      //筛选
      contentArr: {
        //labelName定义名称  inputName定义动态绑定值
        input1: { labelName: '用户昵称', inputName: 'nickName', labelWidth: '120' },
        input1: { labelName: '手机号', inputName: 'phone', labelWidth: '120' },
        //selectOptsName自定义名称  selectOptsArr下拉内容  labelWidth定义宽度
        select1: {
          labelWidth: "120",
          labelName: '级别',
          inputName: 'readeIntegral',
          selectOptsName: "gradeOpts",
          selectOptsArr: `[
                  { value: "1", label: "普粉" },
                  { value: "2", label: "铁粉" },
                  { value: "3", label: "超粉" },
                  { value: "4", label: "V1" },
                  { value: "5", label: "V2" },
                  { value: "6", label: "V3" },
                  { value: "7", label: "V4" },
                  { value: "8", label: "V5" },
                  { value: "9", label: "V6" },
                  { value: "10", label: "V7" },
                  { value: "", label: "全部" },
                ],
                `,
        },

      },
      //查找按钮的文字
      searchBtn: {
        //链接与table请求接口相同，不做另外配置
        text: "查询",
      },

    },
  },

  
  //团队详情列表
  table3: {
    isGenerate: "false",                    //false表示不生成页面
    table_name: "team_detail_table",                //表页面名
    // nav_name: "团队详情列表",                      //导航名
    tipsText: "团队管理 >> 团队详情列表",          //顶部文字
    //tableReqMethod: "get",  //分页请求配置成get方式, 默认为post
    pageApi: "API.team_m.searchTeamList",  //请求api
    extraPageRequestParams: `
       userId : this.$route.query.id,  //请求
    `, //已有page和pageSize
    //配置列表页面
    tableData: [
      //类型normal(title定义名称  name定义动态绑定值  type定义类型  itemWidth定义宽度)
      { title: '序号', name: 'index', type: "normal",  },
      { title: '用户昵称', name: 'nickName', type: "normal", },
      {
        title: '头像',
        name: 'headUrl',
        type: "img",
        heightVal: "60",
        widthVal: "100",
      },
      { title: '手机号', name: 'phone', type: "normal", },
      { title: '会员级别', name: 'grade', type: "normal", },
      { title: '创客级别', name: 'guestName', type: "normal", },
      { title: '推荐人id', name: 'myInviterId', type: "normal", },
      { title: '团队人数', name: 'teamNum', type: "normal", },
      { title: '团队业绩', name: 'teamAmount', type: "normal", },
    ],

    //配置列表操作项(type类型  text名称  request是否请求  jump跳转路由【本文件名+跳转文件名】 url接口 requestType请求方式)
    tableOpt: [],
    //配置搜索栏
    search: {
      //筛选
      contentArr: {
        //labelName定义名称  inputName定义动态绑定值
        input1: { labelName: '用户昵称', inputName: 'nickName', labelWidth: '120' },
        input1: { labelName: '手机号', inputName: 'phone', labelWidth: '120' },
        //selectOptsName自定义名称  selectOptsArr下拉内容  labelWidth定义宽度
        select1: {
          labelWidth: "120",
          labelName: '级别',
          inputName: 'readeIntegral',
          selectOptsName: "gradeOpts",
          selectOptsArr: `[
                  { value: "1", label: "普粉" },
                  { value: "2", label: "铁粉" },
                  { value: "3", label: "超粉" },
                  { value: "4", label: "V1" },
                  { value: "5", label: "V2" },
                  { value: "6", label: "V3" },
                  { value: "7", label: "V4" },
                  { value: "8", label: "V5" },
                  { value: "9", label: "V6" },
                  { value: "10", label: "V7" },
                  { value: "", label: "全部" },
                ],
                `,
        },

      },
      //查找按钮的文字
      searchBtn: {
        //链接与table请求接口相同，不做另外配置
        text: "查询",
      },

    },
  },



}

